package cn.edu.ctgu.junitTest3;

public class TwoIntegers {

    public int sum(int n, int m) {
        // 前置断言
        int sum;
        assert n >= 1 && n <= 99;
        assert m >= 1 && m <= 99;
        sum=n+m;
        assert sum<100;
        return n + m;
    }
    public int subtraction(int n,int m){
        int subtraction;
        assert n>=1&&n<=99;
        assert m>=1&&m<=99;
        subtraction=n-m;
        assert subtraction>=0;
        return subtraction;
    }
}